import request from '@/utils/request'

// 查询玩家阵营列表
export function listLiveTrack(query) {
  return request({
    url: '/data/liveTrack/list',
    method: 'get',
    params: query
  })
}

// 查询玩家阵营详细
export function getLiveTrack(liveRoomId) {
  return request({
    url: '/data/liveTrack/' + liveRoomId,
    method: 'get'
  })
}

// 新增玩家阵营
export function addLiveTrack(data) {
  return request({
    url: '/data/liveTrack',
    method: 'post',
    data: data
  })
}

// 修改玩家阵营
export function updateLiveTrack(data) {
  return request({
    url: '/data/liveTrack',
    method: 'put',
    data: data
  })
}

// 删除玩家阵营
export function delLiveTrack(liveRoomId) {
  return request({
    url: '/data/liveTrack/' + liveRoomId,
    method: 'delete'
  })
}
